#!/usr/bin/env  bash

cd `dirname $0`
[ ! -d logs ] && mkdir logs

conf_file=conf/nginx.conf

# test
if [ "test" == "$1" ]; then
  nginx  -p `pwd` -t -c $conf_file
  exit $?
fi

nginx -p `pwd`/ -c $conf_file
